import { checkAccount } from "mock/tools";

const file = [
  {
    url: '/api/upload',
    methods: 'post',
    response: (options: { body: Record<string, any> }) => {
      // 判断账号与权限
      if(checkAccount()) return { code: 401, errMsg: '您的账号已被禁用' };

      const { body } = options;
      return { code: 200, data: body.file };
    }
  }
];

export default file;
